<?php $stats = Doctrine::getTable('BbPlayerStat')->findByDql('p_id =?', array($playerId))?>
<table style="width:100%;" class="mod-data" width="100%">
  <thead>
    <tr>
      <th scope="col">Тоглолт</th>
      <th scope="col">Огноо</th>
      <th scope="col">Fgm</th>
      <th scope="col">Fga</th>
      <th scope="col">Pt3m</th>
      <th scope="col">Pt3a</th>
      <th scope="col">Ftm</th>
      <th scope="col">Fta</th>
      <th scope="col">Offreb</th>
      <th scope="col">Reb</th>
      <th scope="col">Ast</th>
      <th scope="col">Tov</th>
      <th scope="col">Stl</th>
      <th scope="col">Blk</th>
      <th scope="col">Pf</th>
      <th scope="col">Pts</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($stats as $stat): ?>
      <tr>
        <td><?php echo $match = $stat->getBbMatch() ?></td>
        <td><?php echo $match->getMDate()?></td>
        <td><?php echo $stat->getFgm() ?></td>
        <td><?php echo $stat->getFga() ?></td>
        <td><?php echo $stat->getPt3m() ?></td>
        <td><?php echo $stat->getPt3a() ?></td>
        <td><?php echo $stat->getFtm() ?></td>
        <td><?php echo $stat->getFta() ?></td>
        <td><?php echo $stat->getOffreb() ?></td>
        <td><?php echo $stat->getReb() ?></td>
        <td><?php echo $stat->getAst() ?></td>
        <td><?php echo $stat->getTov() ?></td>
        <td><?php echo $stat->getStl() ?></td>
        <td><?php echo $stat->getBlk() ?></td>
        <td><?php echo $stat->getPf() ?></td>
        <td><?php echo $stat->getPts() ?></td>
      </tr>
    <?php endforeach; ?>
  </tbody>
</table>